/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import java.util.TimerTask;

/**
 *
 * @author Simon
 */
public class Timer {

    Timer timer;
    int counter;

    public Timer() {
        counter = 0;
        timer = new Timer();
        new TimerTask() {
            @Override
            public void run() {
                ++counter;
                System.out.println("counter is: " + counter);
            }
        };
    }

    public static void main(String[] args) {
        Timer object = new Timer();

    }

}
